<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../common/taglibs.jsp"%>
<%@ include file="../jgpt/jgpt_authority.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>广东省网上办事大厅 - 珠海分厅 - 网上办事</title>
		<meta content="text/html; charset=utf-8" http-equiv=Content-Type/>
		<meta name=description content=广东省网上办事大厅-珠海分厅/>
		<meta name=keywords
			content="珠海，投资申请，项目审批，商机，珠海人民政府，政民互动,效能监察,投资审批,网上办事 "/>
		<link rel=stylesheet type=text/css href="../static/css/common.css"/>
		<link rel=stylesheet type=text/css href="../static/css/wsbs.css"/>
		<link rel=stylesheet type=text/css href="../js/My97DatePicker/skin/WdatePicker.css"/>
		<script type=text/javascript src="../js/jquery-1.9.0.min.js"></script>
		<script src="../js/commonInChildPage.js" type=text/javascript></script>
		<script src="../js/highcharts.js" type=text/javascript></script>
		<script language="javascript" type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
		<!--[if IE 6]>
			<script src="/js/DD_belatedPNG.js" type="text/javascript"></script>
			    <script type="text/javascript">
			        DD_belatedPNG.fix('.png');
			</script>
		<![endif]-->
		<meta name=GENERATOR content="MSHTML 8.00.6001.23501"/>
		<style type="text/css">
 			.tjtable{margin:40px}
			.tjtable tr td{width:100px;height:20px;text-align:center;}
		</style>
	</head>
	<body>
		<jsp:include page="../include/head.jsp" />
		<div class=position>
			<strong>
				<table id=wypy border=0 cellSpacing=0 cellPadding=0 width=373>
					<tbody>
						<tr>
							<td class=xinxin_font height=20 vAlign=bottom width=170 align=right>
								本窗口服务星级评定：
							</td>
							<td onmouseover=rate(this,event) vAlign=center width=140
								align=left>
								<img title=很烂 src="../images/star_2.png" width=20/>
								<img title=一般 src="../images/star_2.png" width=20/>
								<img title=还好 src="../images/star_2.png" width=20/>
								<img title=较好 src="../images/star_2.png" width=20/>
								<img title=很好 src="../images/star_2.png" width=20/>
							</td>
							  <td class="xinxin_font" width="40"  height="20"
								align="right">
								<a href="${pageContext.request.contextPath}/jgpt_logout.do">退出&nbsp;&nbsp;&nbsp;</a>
							</td>
						</tr>
					</tbody>
				</table>您现在的位置：</strong>
				<a href="http://wsbs.zhzw.gov.cn/">首 页</a> &gt;
				<a href="http://wsbs.zhzw.gov.cn/wsbs/">网上办事</a> &gt;
				<a href="../index.do">公共资源交易大厅</a>&gt;
				<a href="../login.do">监管平台</a>&gt;
				政府采购成交趋势分析
		</div>
		<div class=cl></div>
		<div class="main t10 clearfix">

			<!-- left -->
			<div class="main_l" style="height:895px " >
				<div class="left_nav">
					<div class="left_nav_tit">
						<a href="#">综合监管</a>
					</div>
						<div class="bar_list">
						<h5>
							<span>监管信息</span>
						</h5>
						<ul id="ChildMenu1">
						
						 <c:forEach items="${authList}" var="p" >
							<li class="${p.currentStyleClass}">
								<a href="${p.menuUrl}" class="${p.currentStyleClass}">${p.menuName}</a>
							</li>
						 </c:forEach>
						 
						</ul>
					</div>					
				</div>
				<div class="clear"></div>

			</div>
			<!-- left end -->
			<!-- right -->
			<div class="main_r" style="padding-top:0px">
				<div class="right_box">
					<div class="content-box" style="width:800px;min-height:900px;height:auto;margin-bottom:10px">
						<div class="content-box_tit">
							政府采购成交趋势分析
						</div>
							<div>&nbsp;</div>
							<div>&nbsp;</div>						  
						   <form action="jgpt_zfcg.do" method="post">
								<table  style="min-width: 300px; margin: 10px 1px 1px 150px">
									<tr>
										<td>开始时间：</td>
										<td>
											<input class="Wdate" type="text" onClick="WdatePicker()"
												name="begin" value="${begin}" />
										</td>
										<td>
											&nbsp;&nbsp;结束时间：
										</td>
										<td>
											<input class="Wdate" type="text" onClick="WdatePicker()"
												name="end" value="${end}" />
										</td>
										<td>
											&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="Submit" id="searchButton" value="搜 索" class="input_button_small"/>
										</td>
									</tr>
								</table>
						</form>
							<div id="zxtContainer" align="center" style="min-width: 250px; height: 250px; margin: 0 auto">
							</div>
							<div id="bztContainer" style="min-width: 350px; height: 350px; margin: 0 auto"></div>
							
							<div>&nbsp;</div>
							<div>&nbsp;</div>
							
							<div  align="center">
							
								<table border=1 width="600px;" class="tjtable">
									<tbody>
										<tr>
											<td>年份-月份</td><td >采购人数</td><td>供应商数</td><td >金额汇总(万元)</td>
										</tr>
									</tbody>
									
									 <c:forEach items="${list}" var="p" >
									    <tr>
											<td>${p.year_month}</td>
											<td >${p.cgrs}</td>
											<td>${p.gysrs}</td>
											<td > <fmt:formatNumber value="${p.sum}" pattern="##################.######"/></td>
										</tr>
									 </c:forEach>
<!--									  <tr>-->
<!--											<td><b style="font-weight:bold;">金额汇总：</b></td>-->
<!--											<td >&nbsp</td>-->
<!--											<td>&nbsp</td>-->
<!--											<td ><b style="font-weight:bold;">${zfcgStaticsVO.sumTotal}</b></td>-->
<!--										</tr>-->
								</table>
							</div>
					</div>
				</div>
			</div>
		</div>
		<div class=cb></div>
		<jsp:include page="../include/bottom.jsp" />
		
		<script type="text/javascript">
			    $(function () {
			        $('#zxtContainer').highcharts({
			            title: {
			                text: '成交金额折线图',
			                x: -20 //center
			            },credits: { //去掉右下角highchart标识
			            	 text: '',
			            	 href: ''
			        	 	},
			            xAxis: {
			                categories:[ //x轴
			                    ${x_zhou}
			                ]
			            },
			            yAxis: {
			                title: {
			                    text: '金额(万元)'
			                },
			                plotLines: [{
			                    value: 0,
			                    width: 1,
			                    color: '#808080'
			                }]
			            },
			            tooltip: {
			            	 pointFormat: '金额: <b>{point.y:.4f}万元 </b>'
			            },
			            legend: {
			                layout: 'vertical',
			                align: 'right',
			                verticalAlign: 'middle',
			                borderWidth: 0
			            },
			            series: [{
			                name: '每月成交金额',
			                data: [
			                           ${y_zhou}
			                      ]
			            }]
			        });
			    });
			    
			    
			    $(function () {
		    $('#bztContainer').highcharts({
		        chart: {
		            plotBackgroundColor: null,
		            plotBorderWidth: null,
		            plotShadow: false
		        },
						credits: { //去掉右下角highchart标识
		            	 text: '',
		            	 href: ''
		        },
		        title: {
		            text: '每月金额所占总金额比例'
		        },
		        tooltip: {
		    	    pointFormat: '金额: <b>{point.y:.4f}万元 </b>'
		        },
		        plotOptions: {
		            pie: {
		                allowPointSelect: true,
		                cursor: 'pointer',
		                dataLabels: {
		                    enabled: true,
		                    color: '#000000',
		                    connectorColor: '#000000',
		                    format: '<b>{point.name}</b>: {point.percentage:.1f} %'
		                }
		            }
		        },
		        series: [{
		            type: 'pie',
		            name: '百分比',
		            data: [
		             <c:forEach items="${bzt_list}" var="p" >
			                ['${p.key}',${p.value}],
		             </c:forEach>   
		            ]
		        }]
		    });
		});
	   </script>
	</body>
</html>

